import { DotaEquip } from '@/types/dota'
import { Pagination, PageResult, PageParam } from '@/types/global'
import { http } from '@/utils/http'

type MyParams = Pagination & { subType?: string } // 定义类型 类型是Pagination的属性 + subType属性

export const list = (param: any) => {
  return http.get<DotaEquip[]>('/dota/equip/list', param)
}

export const info = (id: number) => {
  return http.get<DotaEquip>('/dota/equip/info', { id })
}

export const randomOne = () => {
  return http.get<DotaEquip>('/dota/equip/randomOne')
}

export const getHighEquipList = () => {
  return http.get<DotaEquip[]>('/dota/equip/highEquip/list')
}

export const storeList = () => {
  return http.get<string[]>('/dota/equip/store/list')
}
